<script setup lang="ts">
import { ref } from 'vue'

// 需要缓存的组件列表
const cacheList = ref(['categoryForm'])
</script>

<template>
  <router-view v-slot="{ Component, route }">
    <keep-alive :include="cacheList">
      <component
        :is="Component"
      />
    </keep-alive>
  </router-view>
</template>

<style lang="scss">
</style>
